package com.teoresi.sb.action.struttura.clienti;

import com.teoresi.sb.bean.domain.ClienteBean;

public class ClienteJSON {

	private long index;
	private String value;
	
	public ClienteJSON(final long index, final String value) {
		this.index = index;
		this.value = value;
	}
	
	public ClienteJSON(final ClienteBean cliente) {
		this.index = cliente.getId();
		this.value = cliente.getNome() + " " + cliente.getCognome();
	}
	
	public long getIndex() {
		return index;
	}
	public void setIndex(long index) {
		this.index = index;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	
}
